]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
portalHelper: Set a minimum window size
authorBastien Nocera <hadess@hadess.net>
Mon, 23 Jan 2017 07:32:05 +0000 (08:32 +0100)
committerBastien Nocera <hadess@hadess.net>
Tue, 24 Jan 2017 12:36:09 +0000 (13:36 +0100)
Even though the window is maximised when created, the window is still
resizable. This avoids making the window smaller than usable. If the
screen is smaller than the minimum window size, the maximise should make
it fullscreen and non-resizable.

https://bugzilla.gnome.org/show_bug.cgi?id=735233

js/portalHelper/main.js

index 367659de3fece2ef83165a9949d4934f263f0960..c7d0433a97addf8ec35e521985c0091af57e63a6 100644 (file)
@@ -81,6 +81,7 @@ const PortalWindow = new Lang.Class({
 
         this.add(this._webView);
         this._webView.show();
+        this.set_size_request(600, 450);
         this.maximize();
         this.present_with_time(timestamp);